<%@ page language="java" import="weaver.general.Util" pageEncoding="UTF-8" %>
<%@ page import="weaver.hrm.User" %>
<%@ page import="weaver.jobs.common.DocUtil" %>
<%@ page import="java.util.Map" %>
<%--流程退回调用QMS接口--%>
<%

    try {
        String filePath = "[设备购置预算清单]-天津中环领先半导体硅片项目（一期）.pdf";
        String fileName ="http://10.193.218.161/jeecg-boot/sys/common/static/TJ02/TJLX-ZD-GPXM-2021-013/[%E8%AE%BE%E5%A4%87%E8%B4%AD%E7%BD%AE%E9%A2%84%E7%AE%97%E6%B8%85%E5%8D%95]-%E5%A4%A9%E6%B4%A5%E4%B8%AD%E7%8E%AF%E9%A2%86%E5%85%88%E5%8D%8A%E5%AF%BC%E4%BD%93%E7%A1%85%E7%89%87%E9%A1%B9%E7%9B%AE（%E4%B8%80%E6%9C%9F）.pdf";
        Map<String, Object> retMap = DocUtil.downloadByUrl(filePath);
        out.print(">>>>>doCreateRequest>>>retMap=" + retMap);
        if (Util.null2String(retMap.get("code")).equals("0")) {
            String filepath = Util.null2String(retMap.get("data"));
            out.print(">>>>>doCreateRequest>>>filepath=" + filepath+"<br/>");
            int imagefileid = DocUtil.saveImageFile(fileName, filepath);
            out.print(">>>>>doCreateRequest>>>imagefileid=" + imagefileid);
            int docid = DocUtil.createDocByImagefileId(imagefileid, new User(1), "1", "0", fileName, "", 22567);
            out.print(">>>>>doCreateRequest>>>docid=" + docid);
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
%>



